package org.mbcorp.sar.dao;

import org.mbcorp.sar.model.Logro;
import org.mbcorp.sar.model.Logro.Id;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface LogroDAO extends JpaRepository<Logro, Integer> {

	@Query("SELECT a FROM Logro a WHERE a.id = :id")
    public Logro findOne(@Param("id") Id id);
	
}
